home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Programmer Disk
/
The Programmer Disk (Microforum).iso
/
xpro
/
extra
/
pro13
/
find.c
< prev
next >
Wrap
Text File
|
1993-02-09
|
626b
|
46 lines
/*
find.C
Copyright (C) 1993, Geoff Friesen B.Sc.
All rights reserved.
*/
#define INCL_FIND
int findfirst (const char *pathname, struct ffblk *ffblk, int attrib)
{
asm mov ah, 1ah
asm mov dx, ffblk
asm int 21h
asm mov ah, 4eh
asm mov cx, attrib
asm mov dx, pathname
asm int 21h
asm mov ax, 0
asm jnc findfirst1
asm mov ax, -1
findfirst1:
}
int findnext (struct ffblk *ffblk)
{
asm mov ah, 1ah
asm mov dx, ffblk
asm int 21h
asm mov ah, 4fh
asm int 21h
asm mov ax, 0
asm jnc findnext1
asm mov ax, -1
findnext1:
}